const Mock = require('mockjs')
Mock.setup({
    //设置请求延迟
    timeout: '200-800'
})
import user from './user'
import role from './role'
import content from './content'
import setting from './setting'
import log from './log'

const mocks = [
    ...user,
    ...role,
    ...content,
    ...setting,
    ...log
]
mocks.forEach(item => {
  Mock.mock(RegExp(item.url + '.*'), item.type || 'post', item.data)
})
